<?php

itstock_structure($structure, 'provider');
$edit = false;

?><b>Providers</b>
  <br><br><br>
<?php

include _ITSTOCK_INCLUDE_DIR_.'html_table_list.inc.php';
include _ITSTOCK_INCLUDE_DIR_.'settings_html.inc.php';

$structure['table_headers'] = array('N&deg;', 'Provider', 'Code', '', '');
$structure['table_indexes'] = array('provider', 'provider_code');
$structure['table_actions'] = array(
  '<img src="img/edit.png" onclick="itstock_page_request(\'add_provider\', \'%s\')" title="Edit">',
  '<a href="delete.php?type=provider&id=%s"><img src="img/delete.png" title="Delete"></a>'
);
$structure['table_error'] = 'No providers have been found.';

echo '<table>';
$structure['limit'] = '';
itstock_html_table_list_data($structure, true, false);
echo '</table>';
echo $structure['msg'];
?>
